#pragma once
#include "ro.h"

class XDLL roPixelTransform
{
	static const double c1d6; // 1/6 
	static const double c2d3; // 2/3
public:
	static void RGB2HSV(
						uchar &hue, uchar &sat, uchar &val, 
						uchar r, uchar g, uchar b
						) ;
	static void HSV2RGB(
						uchar &r, uchar &g, uchar &b,
						uchar hue, uchar sat, uchar val
						) ;
	static void RGB2HSL(
						uchar &hue, uchar &sat, uchar &lig, 
						uchar r, uchar g, uchar b
						) ;
	static void HSL2RGB(
						uchar &r, uchar &g, uchar &b,
						uchar hue, uchar sat, uchar lig
						) ;

};

